<!--

    Copyright (c) 2005, 2018 Oracle and/or its affiliates. All rights reserved.
    Portions Copyright &#169; [2017-2020] Payara Foundation and/or affiliates.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Public License v. 2.0, which is available at
    http://www.eclipse.org/legal/epl-2.0.

    This Source Code may also be made available under the following Secondary
    Licenses when the conditions for such availability set forth in the
    Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
    version 2 with the GNU Classpath Exception, which is available at
    https://www.gnu.org/software/classpath/license.html.

    SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

-->

<p><a id="ref-websessionproperties" name="ref-websessionproperties"></a><a id="GHWEB00005" name="GHWEB00005"></a></p>

<h4><a id="sthref92" name="sthref92"></a><a id="sthref93" name="sthref93"></a><a id="sthref94" name="sthref94"></a>Properties Specific to Web Container Sessions</h4>
<a name="BEGIN" id="BEGIN"></a>
<p>The following properties are available for a web container session.</p>
<dl>
<dt><code>enableCookies</code></dt>
<dd>
<p>If set to <code>true</code>, uses cookies for session tracking. The default value is <code>true</code>.</p>
</dd>
<dt><code>enableURLRewriting</code></dt>
<dd>
<p>Enables URL rewriting. This provides session tracking by means of URL rewriting when the browser does not accept cookies. You must also use an <code>encodeURL</code> or <code>encodeRedirectURL</code> call in the servlet or JavaServer Pages (JSP) page. The default value is <code>true</code>.</p>
</dd>
<dt><code>idLengthBytes</code></dt>
<dd>
<p>Specifies the number of bytes in this web module's session ID. The default value is 128.</p>
</dd>
</dl>


<small>Copyright &#169; 2005, 2017, Oracle and/or its affiliates. All rights reserved. <a href="docinfo.html">Legal Notices</a></small>
<small>Portions Copyright &#169; [2017-2020] Payara Foundation and/or affiliates.</small>
